package com.jixi.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;
import java.util.Date;

@Data
@Schema(description = "日订餐订单表，记录每天的订餐订单信息")
@TableName("order_daily")
public class OrderDaily {
	
	@Schema(description = "日订餐序号，主键")
	@TableId(value = "order_date_id")
	private Long orderDateId;
	
	@Schema(description = "月订餐编号，与日订餐订单相关联的月订餐的唯一标识")
	private String orderNumber;
	
	@Schema(description = "套餐序号，外键，关联到套餐信息表")
	private Long setmealId;
	
	@Schema(description = "所属学校序号，外键，关联到学校信息表")
	private Long schoolId;
	
	@Schema(description = "公司序号，外键，关联到公司信息表")
	private Long companyId;
	
	@Schema(description = "订餐日期")
	private LocalDate orderDate;
	
	@Schema(description = "家长序号，外键")
	private Long parentId;
	
	@Schema(description = "订单状态：0=未完成，1=已完成，2=已退餐待退款，3=退款成功，4=退款失败")
	private Integer orderDateStatus;
	
	@Schema(description = "创建时间")
	private Date createTime;
	
	@Schema(description = "更新时间")
	private Date updateTime;
	
	@Schema(description = "是否删除")
	private Integer isDeleted;
	
	@Schema(description = "学生外键")
	private Long studentId;
	
	@Schema(description = "班级外键")
	private Long classId;
	
	@Schema(description = "金额")
	private Double amount;
	
	
}
